package com.zjl.spring.exception;

import com.zjl.spring.enums.BaseCode;

/*
 * 数据库异常
 *
 * @Author zhuangjl
 * @Date 2021/11/11 16:45
 **/
public class DBException extends BaseBizException {


    private static final long serialVersionUID = 1L;

    public DBException() {
        super(BaseCode.DB_ERROR.getDesc());
        this.setBaseCode(BaseCode.DB_ERROR);
    }

    public DBException(String message) {
        super(message);
        this.setBaseCode(BaseCode.DB_ERROR);
    }
}
